package org.example.demo15_command.demo2;

public class DelelteButton implements AbstractButton{
    private ConnectionList connectionList;
    private String name;
    public DelelteButton(ConnectionList connectionList,String name){
        this.connectionList = connectionList;
        this.name = name;
    }
    @Override
    public void execute() {
        connectionList.delete(name);
    }
}
